using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FormDisplayable : DisplayableBase
{
    public new Form_ Data;
    public static int CurrentIndex;
    public FormDisplayable(DataBase data):base(data)
    {
        Data = data as Form_;
        DrawItem = GameGraphics.Ins.formItem;

    }
    public override void Draw(int id)
    {
        CurrentIndex++;
        base.Draw(id);
        ((DrawForm)CurrentDrawItem).DrawFormItem(Data);
        GameGraphics.Ins.Form.SetActive(true);
    }
    public override int GetIndex()
    {
        return CurrentIndex;
    }
    public override void Hide()
    {
        base.Hide();
        GameGraphics.Ins.Form.SetActive(false);
        CurrentIndex = 0;
    }
}
